Create BULK Mailbox users â Powershell â [Exchange Server 2010]
Hi All:
Is there a script to create multiple users that are already mail enable on a particular container. I am running a mixed set of Exchange 2007 and Exchange 2010 SP1 servers.
Thanks for your help
fabon
November 15th, 2011 6:12pm
Hi,
Try get-user -organizationalunit OUName | enable-mailbox -database storagegroupname\database.
I hope this work for you.
Free Windows Admin Tool Kit Click here and download it now
November 15th, 2011 7:24pm
Hi Fabon,
Please check if this document helps:
http://www.exchangepedia.com/2006/11/exchange-server-2007-bulk-creation-of-mailboxes-using-exchange-management-shell.html
(This response contains a reference to a third
party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding
the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any
software from the Internet.)Best Regards!
November 16th, 2011 2:41am
Hi Michael Vi:
Thanks for your response. Let me re-phrase my question and explain my dilemma. We migrate to Exchange from Groupwise a couple of years ago. We introduced AD as well as Exchange 2007 running on Windows Server 2003)
My current GAL has a list of all staff members and now we need introduce e-mail for students most likely Middle School and High School , however all the students are located in the same container , if I run the cmdlet that you had suggested I will probably
will be creating 3000+ mail boxes which I don't need all of them right now . I need to separate 6-12 graders from the rest, I can certainly can create a csv file and doing that way however I am need to create a structure as well to manage my database
down the road, which I can do selecting students withe their last names A to G an so on. I have seen scripts on the net but I need some guidance at this point.
Thansk again for your help
fabon
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2011 9:35am
Hi fabon,
This will depend on how you want to structure your exchange environment. Each environment is different so do you have a basic script of the request written up? or you would like to know how to create a script to do what you want to do?
November 22nd, 2011 4:12pm
you can use the following Script:
Import-CSV "C:\scripts\users.csv" | ForEach-Object { New-Mailbox -Lastname $_.LastName -Name $_."Name" -FirstName $_.FirstName -Organization "Projects" -Database "DB1" -UserPrincipalName $_.UserPrincipalName -Password (ConvertTo-SecureString $_.password
-AsPlainText -Force)}
Free Windows Admin Tool Kit Click here and download it now
September 19th, 2012 6:59am